package com.aoxon.cargo.service;

import java.util.HashMap;

import com.aoxon.cargo.bean.GsonBean;

public class SupGetPlaceListService extends MyService{

	/**
	 * 获取城市数据
	 * @return
	 */
	public GsonBean getCity(int startIndex,int length){
		
		url = "registerCity" + suffix;
		params = new HashMap<String, String>();
		params.put("startIndex", String.valueOf(startIndex));
		params.put("length", String.valueOf(length));

		return doPost();
	}

	/**
	 *获取市场数据 
	 * @param strCity
	 * @return
	 */
	public GsonBean getMarket(int startIndex,int length,String strCity){
		
		url = "registerMarket" + suffix;
		params = new HashMap<String, String>();
		params.put("city", strCity);
		params.put("startIndex", String.valueOf(startIndex));
		params.put("length", String.valueOf(length));
		
		return doPost();
	}
	
}
